package com.mckillion.Exercise2;

public enum EntryNumber {
	INSTANCE;
	
	private int entry = 1000;
	private int reference = 99999;
	
	public synchronized int getNextEntry(){
		return entry++;
	}
	
	public synchronized int getNextReference(){
		return reference--;
	}
}